﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;




namespace FrameWork.web.Includes.ET
{
    /// <summary>
    /// $codebehindclassname$ 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class etchk : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            ////检测当前用户名对应的信息是否已经入库

            //context.Response.ContentType = "text/plain";
            //context.Response.Buffer = true;
            //context.Session.LCID = 2052; //中国地区LCID
            //context.Response.Charset = "utf-8"; //设置入库编码

            //if (string.IsNullOrEmpty(context.Request.Form["Title"]) || string.IsNullOrEmpty(context.Request.Form["UserName"]))
            //    return;      //若标题或内容其中一个为空，则认为此条信息无效

            ////根据标题和用户名查询信息是否入库了
            //string Title = context.Server.UrlDecode( context.Request.Form["Title"]);
            //string UserName = context.Request.Form["UserName"];

            //if (BusinessFacadeFrameSite.app_BusinessInfoListCount(UserName, Title) > 0)
            //{
            //    //已有收录
            //    context.Response.Write("[yes]");
            //}
            //else
            //{
            //    //未收录
            //    context.Response.Write("[no]");

            //}
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}
